<?php

use yii\db\Migration;

/**
 * Handles adding columns to table `{{%ticket_sales}}`.
 */
class m240508_130848_add_ticket_number_column_to_ticket_sales_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%ticket_sales}}', 'ticket_number', $this->string(255)->notNull()->unique());
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%ticket_sales}}', 'ticket_number');
    }
}
